package com.jiaai.cloud.gift.mapper;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.jiaai.cloud.gift.entity.TLiveGiftDetail;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;


import java.util.List;

/**
 * <p>
  * 直播间礼物赠送表 Mapper 接口
 * </p>
 *
 * @author 佳爱网络科技
 * @since 2017-08-01
 */
public interface TLiveGiftDetailMapper extends BaseMapper<TLiveGiftDetail> {

    /**
     * 关联查询所有
     * @param wrapper
     * @return
     */
    List<TLiveGiftDetail> joinFully(Page page, @Param("ew") Wrapper wrapper);
    /**
     * 关联查询所有按房间Id
     * @param id
     * @return
     */
    List<TLiveGiftDetail> joinFullyByBroadcastId(Page page, @Param("id") String id);
}